import {BrowserRouter as Router,Route,Switch} from 'react-router-dom'

// 导入组件
import Login from './pages/Login'
import Layout from './pages/Login'

function App() {
  return (
    <Router>
      <div className="App">
        
        {/* 配置路由规则 */}
        <Switch>
        <Route path='/login' component={Login}></Route>
        <Route path='/layout' component={Layout}></Route>
        </Switch>
        
      </div>
    </Router>
    
  );
}

export default App;
